package Chinese.Education.Identify.mapper;


import Chinese.Education.Identify.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherMapper {
    List<Teacher> selectTeacher(@Param("offset") int offset,
                               @Param("limit") int limit,
                               @Param("teacherId") String teacherId,
                                @Param("teacherName") String teacherName);

    int selectCount();

    void insertTeacher(Teacher teacher);

    void deleteTeacher(Teacher teacher);

    void updateTeacher(Teacher teacher);


    Teacher selectTeacherById(String teacherId);

    void updateDescription(@Param("teacherId") String teacherId, @Param("description") String description);
}
